
Page({
  data: {
    path: '',
    type: '',
    id: '',
    url: 'https://shop.aicebar.com/public',
  },

  onLoad: function (options) {
    var type = options.type
    var id = options.uid || '0'
    var h5 = ''
    switch (type) {
      case '1':
        h5 = this.data.url + '/yunshi/index.html'
        break;
      case '2':
        h5 = this.data.url + '/caifu/index.html'
        break;
      case '3':
        h5 = this.data.url + '/shiye/index.html'
        break;
      case '4':
        h5 = this.data.url + '/aiqing/index.html'
        break;
      case '5':
        h5 = this.data.url + '/nianyun/index.html'
        break;
      default:
        h5 = 'https://shop.aicebar.com/public/download/index.html'
    }
    this.setData({
      path: h5 + '?form=wp&uid=' + id
    })

  },
  getMessage(e) {
    var data = e.detail.data[0]
  },
})